<template>
    <div class="demo">
        <h2>学生名称：{{studentName}}</h2>
        <h2>地址：{{Address}}</h2>
        <button @click="showName">点击显示学生名称</button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            studentName:'阿涛',
            Address:'万里蹀躞'
        }
    },
    methods: {
        showName(){
            alert(this.studentName)
        }
    },
}
</script>

<style>
    .demo{
        background-color: orange;
    }
</style>